<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Price</th>
    <th>Image URL</th>
	<th>Category</th>
  </tr>

<% @articles.each do |article| %>
  <tr>
    <td><%=h article.name %></td>
    <td><%=h article.description %></td>
    <td><%= number_to_euro(article.price) %></td>
	<td class="image"><%=h article.image_url %><br/>
	<%= image_tag(article.image_url, :class => "product_photo")%></td>
	<td><%=h article.category_id %></td>
</p>
	<td class="admin"><%= link_to 'Show', article %><br/>
	<%= link_to 'Edit', edit_article_path(article) %><br/>
	<%= link_to 'Destroy', article, :confirm => 'Are you sure?', :method => :delete %></td>

  </tr>
<% end %>
</table>

<br />

<%= link_to 'New article', new_article_path %>